package com.lm.activiti.boot.datatype;

import com.alibaba.fastjson.JSON;
import com.google.common.collect.Maps;
import com.lm.activiti.boot.dto.Animal;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;
import org.junit.Test;

import java.util.Map;
import java.util.TreeMap;

/**
 * @author lm_jcf
 * @date 2019/12/26 10:58
 */
public class TreeMapTest {

    @Test

    public void treeMap(){

        TreeMap<String, String> treeMap = Maps.newTreeMap();

        treeMap.put("A", "第一");
        System.out.println(treeMap);


        String[] a = null;

        String[] a2 = new String[5];

        String[] sss = null;

        String a22 [] = null;

        String a232 [] = new String[5];

        String a2322 [][] = new String[0][5];

        System.out.println(JSON.toJSONString(a232));

        System.out.println(JSON.toJSONString(a2322));

        Map<String, String> map = Maps.newTreeMap();

        Map<String, String> linkedHashMap = Maps.newLinkedHashMap();

//        linkedHashMap.put()

//        ((TreeMap<String, String>) map).higherKey()

        System.out.println(2 << 2);

    }

    transient Animal a;

    @Test
    public void objectSwap(){

        Animal t = null;

        t = a;

        a = new Animal("张三", 170);

        System.out.println(t);

    }
}
